home *** CD-ROM | disk | FTP | other *** search
/ Acorn User: China / Acorn User China CD-ROM (UK) (Disc A) / Acorn User China CD-ROM (UK) (Disc A).bin / DEMON / GNU / PDMake / Makefile < prev    next >
Encoding:
Makefile  |  1995-07-15  |  2.6 KB  |  139 lines

  1. # > Makefile for make!
  2.  
  3. GCCflags =  -i
  4. Linkflags = -aif -o $@
  5. Libs =  gcc:o.gcc Unix:UnixLib.o
  6.  
  7. Dependencies = -mamu
  8.  
  9. CC = gcc $(GCCflags)
  10. Link = ld $(Linkflags) $(Libs)
  11.  
  12.  
  13. .SUFFIXES: .o .c .cc .s .i .y .h
  14. .c.o:
  15.     $(CC) $(Dependencies) -c -o $@ $<
  16. .cc.o:
  17.     $(CC) $(Dependencies) -c -o $@ $<
  18. .cc.s: 
  19.     $(CC) $(Dependencies) -S -o $@ $<
  20. .c.s:  
  21.     $(CC) $(Dependencies) -S -o $@ $<
  22. .cc.i: 
  23.     $(CC) $(Dependencies) -E -o $@ $<
  24. .c.i:  
  25.     $(CC) $(Dependencies) -E -o $@ $<
  26.  
  27.  
  28. #############################################################################
  29.  
  30.  
  31. #LINKS= C:o.Stubs   C:o.Risc_OSlib
  32. LINKS = gpp:o.c++ gcc:o.gcc Unix:o.UnixLib
  33.  
  34.  
  35. #CFLAGS = -c -darc -IUnix: -JUnix:
  36. CFLAGS = -darc -IUnix:
  37.  
  38.  
  39. SRCS    =    check.c input.c macro.c main.c \
  40.         make.c reader.c rules.c riscsupp.c\
  41.         error.c h.h
  42.  
  43.  
  44. OBJS    =    check.o input.o macro.o main.o \
  45.         make.o reader.o rules.o riscsupp.o\
  46.         error.o 
  47.  
  48. !Runimage:    $(OBJS) 
  49.     $(Link) $(OBJS) 
  50.     
  51.  
  52. # $(LINKS)
  53.  
  54. $(OBJS):h.h
  55.  
  56. checkout:
  57.     co $(SRCS)    
  58.  
  59.  
  60. # Dynamic dependencies:
  61. o.reader:    c.reader
  62. o.reader:    Unix:h.string
  63. o.reader:    Unix:sys.h.types
  64. o.reader:    Unix:h.errno
  65. o.reader:    h.h
  66. o.reader:    Unix:h.stdlib
  67. o.reader:    Unix:h.stdio
  68. o.reader:    Unix:h.stdarg
  69. o.error:    c.error
  70. o.error:    h.h
  71. o.error:    Unix:h.string
  72. o.error:    Unix:sys.h.types
  73. o.error:    Unix:h.errno
  74. o.error:    Unix:h.stdlib
  75. o.error:    Unix:h.stdio
  76. o.error:    Unix:h.stdarg
  77. o.check:    c.check
  78. o.check:    h.h
  79. o.check:    Unix:h.string
  80. o.check:    Unix:sys.h.types
  81. o.check:    Unix:h.errno
  82. o.check:    Unix:h.stdlib
  83. o.check:    Unix:h.stdio
  84. o.check:    Unix:h.stdarg
  85. o.input:    c.input
  86. o.input:    Unix:h.stdio
  87. o.input:    Unix:h.stdarg
  88. o.input:    Unix:sys.h.types
  89. o.input:    h.h
  90. o.input:    Unix:h.string
  91. o.input:    Unix:h.errno
  92. o.input:    Unix:h.stdlib
  93. o.macro:    c.macro
  94. o.macro:    h.h
  95. o.macro:    Unix:h.string
  96. o.macro:    Unix:sys.h.types
  97. o.macro:    Unix:h.errno
  98. o.macro:    Unix:h.stdlib
  99. o.macro:    Unix:h.stdio
  100. o.macro:    Unix:h.stdarg
  101. o.main:    c.main
  102. o.main:    Unix:h.stdio
  103. o.main:    Unix:h.stdarg
  104. o.main:    Unix:sys.h.types
  105. o.main:    Unix:sys.h.os
  106. o.main:    h.h
  107. o.main:    Unix:h.string
  108. o.main:    Unix:h.errno
  109. o.main:    Unix:h.stdlib
  110. o.rules:    c.rules
  111. o.rules:    h.h
  112. o.rules:    Unix:h.string
  113. o.rules:    Unix:sys.h.types
  114. o.rules:    Unix:h.errno
  115. o.rules:    Unix:h.stdlib
  116. o.rules:    Unix:h.stdio
  117. o.rules:    Unix:h.stdarg
  118. o.make:    c.make
  119. o.make:    Unix:h.unistd
  120. o.make:    Unix:h.time
  121. o.make:    Unix:sys.h.types
  122. o.make:    Unix:h.fcntl
  123. o.make:    Unix:h.termio
  124. o.make:    Unix:sys.h.stat
  125. o.make:    h.h
  126. o.make:    Unix:h.string
  127. o.make:    Unix:h.errno
  128. o.make:    Unix:h.stdlib
  129. o.make:    Unix:h.stdio
  130. o.make:    Unix:h.stdarg
  131. o.make:    Unix:sys.h.os
  132. o.make:    Unix:h.string
  133. o.riscsupp:    h.h
  134. o.riscsupp:    Unix:h.errno
  135. o.riscsupp:    Unix:h.stdlib
  136. o.riscsupp:    Unix:h.stdio
  137. o.riscsupp:    Unix:h.stdarg
  138. o.riscsupp:    Unix:sys.h.os
  139.